package org.dromara.business.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.business.domain.UserFlowing;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 用户积分流水视图对象 user_flowing
 *
 * @author zlj
 * @date 2024-08-16
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = UserFlowing.class)
public class UserFlowingVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long userFlowingId;

    /**
     * 积分
     */
    @ExcelProperty(value = "积分")
    private BigDecimal amount;

    /**
     * 1签到  2提现  3出售任务
     */
    @ExcelProperty(value = "1签到  2提现  3出售任务")
    private Integer type;

    /**
     * 创建人名称
     */
    @ExcelProperty(value = "创建人名称")
    private String name;

    /**
     * 购买人id
     */
    @ExcelProperty(value = "购买人id")
    private Long subordinateId;
    @Translation(type = TransConstant.USER_ID_TO_NICKNAME, mapper = "subordinateId")
    private String subordinate;

    private Date createTime;
    private Date updateTime;
}
